home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Amiga Classic Collection
/
The Amiga Classic Collection - Disc 1.iso
/
Education
/
ED16-CrosswordCreator.DMS
/
ED16-CrosswordCreator.adf
/
Cross.docE
< prev
next >
Wrap
Text File
|
1991-07-13
|
14KB
|
390 lines
Cross V4.1
----------
Copyright © 1991 by Jürgen Weinelt
Zur Kanzel 1
D-8783 Hammelburg
Germany
Cross V4.1 is Freeware. Copy it, but don't make profits with it!
Limited licence is granted for non-commercial distribution, epecially for
public domain collectors (Fred Fish).
Note: Use this program at your own risk, that is, if it breaks something,
don't bother me with your problems. I think this is a fair deal;
please remember you don't have to pay for this program.
I'd still like to know about major bugs...
Note: Cross needs lots of memory. There may be troubles on 512K-Amigas,
especially if there are several disk drives present.
Note: Cross was created on my A2000 with A2630, 1.0MB chip mem,
2.0MB 32bit fast mem, ECS-Agnus, standard Denise, ALF2 hard disk,
Kick/WB 1.3, and a HP Deskjet 500 printer.
If you find any bugs, please send me a detailed report, including a
description of your system configuration (hardware AND software!)
If you write me a letter, please add a picture postcard or a photo of
your home town as substitute for the return postage.
Note: I apologize for any mistakes I may have made in this text; as you
probably guessed from my address, English is not my native language...
How to start it
---------------
CROSS [-xXSIZE] [-yYSIZE] [-d]
(1) (2) (3)
Cross accepts up to 3 parameters:
(1) horiz. size; 5<=XSIZE<=39; Default: 25
(2) vert. size; 5<=YSIZE<=35; Default: 25
(3) Debug-mode for the message data file; will be explained later.
Parameters may be stated in any order. All parameters are optional.
Examples:
Cross -x9 -y9
Cross -y21
Cross -d
Cross -y13 -d -x39
Before calling Cross, you have to install (with ASSIGN) a logical device
named "CROSS:"; this is where Cross is looking for its data files:
(1) DATA (directory)
(2) DATA/msgtxt.data (data file with multilingual program messages)
(3) DATA/words01.crw (word data file) or
DATA/words02.crw (word data file)
(4) DATA/ (...) .crd (crossword data files)
There are two word data files in this release:
words01.crw contains German words
words02.crw contains English words
During startup Cross tries to read the message data file. Then you get
a list of all languages available (just German and English at the
moment), from which you can choose one (enter number, then press return).
A detailed description of the message data file follows later.
Usage
-----
Using Cross should be easy, since most of the options are obvious.
Still you might want to read the detailed menu descriptions:
The "Project" menu
------------------
This is where you find basic activities like load or save:
Project : New
-------------
A safety requester asks you to confirm your choice. If you click on
"CONFIRM", the current crossword is dropped and everything is
prepared for the work on a new one.
Project : Load crossword
------------------------
An old crossword data file will be read from disk. File selection is
done with the popular ARP file requester. You should always use the
extension ".crd" for crossword data files.
Project : Load word data file
-----------------------------
A different word data file will be loaded. File selection is done
with the ARP file requester. You should always use the extension
".crw" for word data files.
Project : Save crossword
------------------------
Use this function to save the crossword you are currently working
with. File selection is done with the ARP file requester. You should
always use the extension ".crd" for crossword data files.
Project : QUIT
--------------
A safety requester asks you to confirm your choice. If you click on
"CONFIRM", the program will end.
The "Edit" menu
---------------
Here you'll find anything you need for creating new crosswords.
Edit : Auto search mode on/off
------------------------------
While the auto search mode is active, Cross tries to find words that
fit into the crossword. Two conditions must be fulfilled:
- a word data file must be present (that is, in memory)
- at least one word must have been placed as a "seed" from which the
rest of the crossword can grow
Select this item again to turn auto search mode off.
Edit : Enter & place word manually
----------------------------------
Type the word into the string requester and press return (or click on
"CONFIRM"). Then select a grid position by placing your mouse pointer
and clicking the left mouse button. A second requester asks for
the word direction (horizontal or vertical).
Edit : Reset limit
------------------
Cross uses the limit variable to make sure that long words are placed
before short words. Words must have at least the length stated by limit
or they will not be placed. limit is decremented automatically if no
more words can be placed. Use the "reset limit" function to reset limit
to its original (high) value.
Edit : Set crossword size
-------------------------
Two requesters ask for the width and the height of your crossword. Please
note that width and height must be odd.
This function is not available if words have already been placed.
Edit : Put seed words
---------------------
Use this function to place the four seed words from which the rest of
your crossword will grow. You might decide to place some seeds manually
instead of or in addition to using this function; see "Enter and place
word manually".
This function is not available if words have already been placed.
The "Printer" menu
------------------
The printer menu contains several functions for copying your crosswords
to paper.
Printer : Print crossword (generic plain)
-----------------------------------------
This function will hopefully never be used; it does work with almost
any printer except for some really very exotic models, but what you
get is definitely not what one might call "nice" or "good looking"...
Printer : Print crossword (generic fancy)
-----------------------------------------
This is the first choice for printing crosswords; it should work with
every graphics printer, if the printer was configured correctly
(-> Preferences).
The "generic fancy" mode needs quite a lot of memory; there may be
problems on 512K Amigas.
Printer : Print crossword (LaTeX)
---------------------------------
If you're a LaTeX user, you can use this function to put your crossword
as a LaTeX source file. File selection is done with the ARP file requester
as usual.
You may have to experiment with the paper width and paper height settings
of your LaTeX environment; try "\oddsidemargin", "\textwidth", "\hoffset"
and "\voffset". Editing the "\unitlength" command enables you to resize
the crossword globally.
Printer : Print crossword (Epson)
---------------------------------
This is a last resort for those who possess a 8/9-needle Epson (-compatible)
matrix printer. Be sure to try "generic fancy" first.
Printer : Print crossword solution
----------------------------------
This function is the same for every printer, since there's no graphics to
be printed here anymay.
message data file
-----------------
This file contains virtually every text used by Cross, at the moment in both
German and English. Other languages can be added easily.
Every entry in the message data file uses exactly one line.
Structure of the message data file
----------------------------------
The first line of the message data file contains one single digit; this is
the number of languages currently available.
This is followed by the name of each language (for example ENGLISH and
DEUTSCH).
The following entries are present once for each language, too. These are the
program messages.
If you want to add another language to the message data file, please make
sure that your translation has approx. the same size as the original
message, because some of them appear in requesters or menus.
Every entry must start with a three-digit number. This number must be
identical with the actual number (count 'em) of this message (sounds
difficult; just take a close look at the message data file, you'll see what
it means...).
The only exception to this rule is entry number "999" which signals
the "End of file".
If you encounter any problems after adding another language, just
call "Cross" with the message debug mode on (parameter "-d"). This causes
the message numbers to be displayed with the messages themselves; it will
(hopefully) help you locate the problem.
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
############################################################################
Did you add another language to the message data file? Please send me a
copy of your message data file on disk, it'll be included with the next
release of Cross. As a reward I'll send your disk back with another one of
my PD programs.
############################################################################
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Word data files
---------------
If you want to create your own word data files, please note:
(1) You may use every character you want to, even national characters
like "ä § ø ¥", spaces or ": ; , #"...
These special characters will not be displayed on screen, but they
will be printed, if your printer is configured correctly through
"Preferences".
(2) The word length should always be odd, that is, 3, 5, 7, ... 25; (except
for two letter words). Maximum length is 25, minimum is 2.
These limitations are needed to improve the structure of the crossword.
You MAY use words with even length, but this will probably cause larger
gaps in the crossword.
(4) The word data file must not contain empty lines.
(5) The last entry may or may not be "***END***", without quotation marks,
of course; that means "***END***" is not needed, but will be ignored
if present.
Yes, you're right. There is an easier way of creating word data files...
Just run any standard ASCII text file through the "PreProcessor", which
should also be somewhere in the "Cross" drawer. PreProcessor will break it
down into single words and will remove anything illegal (PreProcessor still
uses the strict Version 3 rules for words). You'll have to use
your favourite editor though to delete all those words you don't want to use.
There may also be some "crippled" words that didn't survive the PreProcessor.
Usage of the PreProcessor:
PreProcessor
There are no command line parameters; file selection is done by ARP file
requesters.
Note: The PreProcessor uses a recursive algorithm (builds a binary tree
to sort the words); please make sure there's enough stack space
available. You can increase the stack space with a CLI command
called "STACK". PreProcessor automatically allocates 50000 bytes
of stack space; if you need more than that, use the STACK command.
PreProcessor is very greedy anyway... i'm sure there's going to be
trouble with it on 512K Amigas if you try to convert large ASCII
text files.
Just a warning: if your word data file is very large (that is, if it
contains MANY, MANY, MANY words), the creation of the crossword will
be slowed down considerably. In order to avoid this effect, you might use
several small word data files, loading the next when the current file is
used up.
An example:
File | word length
------------+------------
words05.crw | 25..17
words06.crw | 15.. 9
words07.crw | 7.. 5
words08.crw | 3.. 2
Known problems/bugs of Cross
----------------------------
- (very seldom) TRAP 11 during program startup, reason: unknown
- (very seldom) memory fragmentation, reason: unknown
If you encounter any bugs, please send me a detailed report.
Things to be done
-----------------
- removing words from the crossword
- several patterns for setting the "seed" word(s)
- user configurations
- crosswords with custom layouts instead of rectangles.
History
=======
V4.1 RELEASEd on AMOK and FISH
Cross can be made RESIDENT now.
several bugs fixed (?)
V4.0 using menus instead of gadgets
new printer drivers including hires, generic and LaTeX
"New crossword"
"New size"
needs much less memory (semi-dynamic word storage)
improved PAL/NTSC-support
faster
V3.5A intermediate version with some dirty bug fixes [removed in V4.0]
V3.5 still struggling with the new compiler
V3.4 changed to compiler version 4.096d
V3.3 RELEASE on FISH
automatic PAL/NTSC recognition by examining "height" field of
workbench screen
fixed some minor errors in program and documentation
V3.2 first RELEASE of M2 version on AMOK
Enjoy!
####################################
########################################
## ##
## /¯¯¯¯\ \\|||// \ / ##
## / \ \|o o|/ \ / ##
## | | . | \ /\ / ##
## \ / | ' | \ / \ / ##
## \____/ \ ~ / \/ \/ ##
## ¯¯¯ ##
########################################
####################################